package com.dawn.trademanage.bean;

import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * The persistent class for the tt_tradedetail database table.
 * 
 */
@Entity
@Table(name = "tt_tradedetail")
public class TradeDetailBean implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private long tradeDetailId;

	private long fansId;

	@Temporal(TemporalType.TIMESTAMP)
	private Calendar followedTime;

	// bi-directional many-to-one association to TradeInfoBean
	@ManyToOne
	@JoinColumn(name = "tradeId")
	private TradeInfoBean ttTradeinfo;

	public long getTradeDetailId() {
		return this.tradeDetailId;
	}

	public void setTradeDetailId(long tradeDetailId) {
		this.tradeDetailId = tradeDetailId;
	}

	public long getFansId() {
		return this.fansId;
	}

	public void setFansId(long fansId) {
		this.fansId = fansId;
	}

	public Calendar getFollowedTime() {
		return this.followedTime;
	}

	public void setFollowedTime(Calendar followedTime) {
		this.followedTime = followedTime;
	}

	public TradeInfoBean getTtTradeinfo() {
		return this.ttTradeinfo;
	}

	public void setTtTradeinfo(TradeInfoBean ttTradeinfo) {
		this.ttTradeinfo = ttTradeinfo;
	}
}
